import { createRouter, createWebHistory, RouterLink } from 'vue-router'
import Home from './components/Home.vue'
import Movie from './components/Movie.vue'
import About from './components/About.vue'
import HelloWorld from './components/HelloWorld.vue'
import Login from './components/Login.vue'
import Notfound from './components/Notfound.vue'

const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            path:'/',
            components:{
                default:HelloWorld,
                a:About,
                b:Home,
                c:Login,
                d:Movie,
                e:Notfound
            }
        },{
            path:'/home',
            components:{
                default:Notfound,
                a:About,
                b:Home,
                c:Login,
                d:Movie,
                e:HelloWorld
            }
        }
    ],
    strict:true

})

export default router